package cn.train.controler;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/ShowOrderServlet")
public class ShowOrderServlet extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
		String wangfan=req.getParameter("wangfan");
		String zongqian=req.getParameter("zongqian");
		
		String crname1=req.getParameter("crname1");
		String city11=req.getParameter("city11");
		String city21=req.getParameter("city21");
		String gotime1=req.getParameter("gotime1");
		String overtime1=req.getParameter("overtime1");
		String zongtime1=req.getParameter("zongtime1");
		String time11=req.getParameter("time11");
		String zuotype1=req.getParameter("zuotype1");
		String week1=req.getParameter("week1");
		String qian1=req.getParameter("qian1");
		String shengyu1=req.getParameter("shengyu1");
		
		String crname2=req.getParameter("crname2");
		String city12=req.getParameter("city12");
		String city22=req.getParameter("city22");
		String gotime2=req.getParameter("gotime2");
		String overtime2=req.getParameter("overtime2");
		String zongtime2=req.getParameter("zongtime2");
		String time12=req.getParameter("time12");
		String zuotype2=req.getParameter("zuotype2");
		String week2=req.getParameter("week2");
		String qian2=req.getParameter("qian2");
		String shengyu2=req.getParameter("shengyu2");
		
		req.setAttribute("wangfan",wangfan);
		req.setAttribute("zongqian",zongqian);
		
		req.setAttribute("crname1",crname1);
		req.setAttribute("city11",city11);
		req.setAttribute("city21",city21);
		req.setAttribute("gotime1",gotime1);
		req.setAttribute("overtime1",overtime1);
		req.setAttribute("zongtime1",zongtime1);
		req.setAttribute("time11",time11);
		req.setAttribute("zuotype1",zuotype1);
		req.setAttribute("week1",week1);
		req.setAttribute("qian1",qian1);
		req.setAttribute("shengyu1",shengyu1);
		
		req.setAttribute("crname2",crname2);
		req.setAttribute("city12",city12);
		req.setAttribute("city22",city22);
		req.setAttribute("gotime2",gotime2);
		req.setAttribute("overtime2",overtime2);
		req.setAttribute("zongtime2",zongtime2);
		req.setAttribute("time12",time12);
		req.setAttribute("zuotype2",zuotype2);
		req.setAttribute("week2",week2);
		req.setAttribute("qian2",qian2);
		req.setAttribute("shengyu2",shengyu2);
		
		req.getRequestDispatcher("font/order.jsp").forward(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(req, resp);
	}
}
